#include <stdio.h>
#include <stdlib.h>

#include "test_mgr.h"

int main(int argc, char **argv)
{
    if (argc != 2) {
        printf("Usage: ./test_client <CLIENT_TYPE>\n");
        printf("Where client type cand be:\n");
        printf("\t1 - stress client\n");
        printf("\t2 - load client\n");
        printf("\t3 - measurement client\n");
        return 0;
    }

    if (init_server() < 0) {
        printf("Failed to init memcached server\n");
        return 0;
    }

    printf("Server connectiond established\n");

    run_test((enum ClientType)atoi(argv[1]));

    destroy_server();

    printf("Server destroyed\n");

    return 0;
}

